package cn.kgc.fcm.springbootmybatisplusexample.service.impl;

import cn.kgc.fcm.springbootmybatisplusexample.dto.ResultDTO;
import cn.kgc.fcm.springbootmybatisplusexample.entity.Employee;
import cn.kgc.fcm.springbootmybatisplusexample.mapper.EmpMapper;
import cn.kgc.fcm.springbootmybatisplusexample.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmpServiceImpl implements EmpService {

    @Autowired
    private EmpMapper empMapper;

    @Override
    public ResultDTO<List<Employee>> selectEmpALl() {
        return ResultDTO.buildSuccess(empMapper.selectEmpAll());
    }
}
